<%@ page language="java" %>

<%@ page import="org.fiel.helpers.Enums" %>


<%@ taglib uri="/WEB-INF/incube-app.tld" prefix="app" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>


<%!
	int id = 1;
	int iteracion = 1;
	int cantpordiv = 0; // Se inicializa en initVars

	public String initVars(String cant){
		id = 2;
		cantpordiv = Integer.parseInt(cant);
		iteracion = 1;
		return "";
	}
	
	public String getNextID(){
		return Integer.toString(id++);
	}
	public String getStyle(){
		if((id - 1) > 1)
			return "style=\"display:none\"";
		return "";
	}
	public String incrementarIterador(){
		iteracion += 1;
		return "";
	}

	public String getHeaderDIV(){
		if(iteracion >= cantpordiv ){
			if( (iteracion % cantpordiv) == 0)
				return "<div id=\"p" + getNextID()+ "\"" + getStyle() + ">";
			}
		return "";
	}
	
	public String getFooterDIV(){
		if(iteracion >= cantpordiv ){
			if( (iteracion % cantpordiv) == 0)
				return "</div>";
		}
		return "";
	}
%>



<script language="javascript">showLabel('indicadoresCoyuntura')</script>
		<%=initVars("2")%>
<iframe src="/pages/publicaciones/indicadoresDeCoyunturaFrame.jsp" 
	width="100%" 
	height="100%" 
	border="0" 
	scrolling="auto" 
	frameborder="0">
</iframe>